﻿Imports FluentNHibernate.Mapping
Public Class UserPreviewMap
    Inherits ClassMap(Of nHibernate.Models.UserPreviewModel)

    Public Sub New()
        Id(Function(x) x.UserName)
        Map(Function(x) x.UserID)
        Map(Function(x) x.Hash)
        Map(Function(x) x.CanEditUsers)
        Map(Function(x) x.CanReadArticle)
        Map(Function(x) x.CanReadCustomer)
        Map(Function(x) x.CanReadDatabase)
        Map(Function(x) x.CanReadOrder)
        Map(Function(x) x.CanWriteArticle)
        Map(Function(x) x.CanWriteCustomer)
        Map(Function(x) x.CanWriteDatabase)
        Map(Function(x) x.CanWriteOrder)
    End Sub
End Class
